package com.neusoft.neumooc.dao;

import java.util.List;

import com.neusoft.core.common.exception.DAOException;
import com.neusoft.neumooc.VO.OrderVO;


/** 
 * @ClassName: OrderDAO 
 * @Description: TODO 订单管理业务数据访问类
 * @author zls
 * @date 2016年11月1日
 */
public interface OrderDAO {

	
	/** 
	 * @Title: getOrderList 
	 * @Description: TODO 获得订单列表
	 * @param pageIndex 起始页数
	 * @param pageSize 页面大小
	 * @return List
	 * @throws DAOException
	 */
	public List<OrderVO> getOrderList(int pageIndex, int pageSize) throws DAOException;

	
	/** 
	 * @Title: getOrderNum 
	 * @Description: TODO 获得订单列表计数
	 * @return int
	 * @throws DAOException
	 */
	public int getOrderNum() throws DAOException;


	/** 
	 * @Title: changeOrderPay 
	 * @Description: TODO 更改订单支付状态
	 * @param orderId 订单ID
	 * @return int
	 * @throws DAOException
	 */
	public int changeOrderPay(String orderId) throws DAOException;

	
	/** 
	 * @Title: changeOrderStatus 
	 * @Description: TODO 更改订单发货状态
	 * @param orderId 订单ID
	 * @return int
	 * @throws DAOException
	 */
	public int changeOrderStatus(String orderId) throws DAOException;

	
	/** 
	 * @Title: deleteOrder 
	 * @Description: TODO 删除订单
	 * @param orderId 订单ID
	 * @return int
	 * @throws DAOException
	 */
	public int deleteOrder(String orderId) throws DAOException;


	/** 
	 * @Title: addOrder 
	 * @Description: TODO 增加订单
	 * @param ordervo 订单实体
	 * @return int
	 * @throws DAOException
	 */
	public int addOrder(OrderVO orderVO) throws DAOException;

}
